import 'package:myapp/dio/dio_client.dart';
import 'package:myapp/dio/model/api_response.dart';
import 'package:myapp/dio/model/site_info.dart';

class Site {
  static Future<SiteInfo> getInfoApi() async {
    var jsonData = ApiResponse.fromJson(await dioClient.get("/site/info")).data;
    // await dioClient.get("/site/info");

    return SiteInfo.fromJson(jsonData);
  }
}
